package com.personal.enums;

/**
 * @author coderFu
 * @create 2021/10/1
 *通用返回枚举
 */
public enum SignEnum implements Code {

    /** 用户签到 */
    USER_SIGN_SUCCESSED(3001, "今日已经签到过了"),
    USER_SIGN_FAILED(3002, "签到失败，请稍后重试"),
    QUERY_USER_INFO_FAILED(3003, "查询用户账户信息失败")
    ;

    private int code;
    private String msg;
    SignEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String msg() {
        return this.msg;
    }
}
